package com.dingdang.em;

public enum ResultEnum {

    SUCCESS(10000, "操作成功"),
    ERROR(20001, "操作失败"),
    NOLOGIN(20002, "暂未登录"),
    ARGS_ERROR(20003, "参数错误"),
    SALE_OVER(20004, "商品已售罄"),
    GATEWAY_FALLBACK(20006,"网关失败回调(网络异常)"),
    TOO_MANY_REQUESTS(20007, "操作频繁,请稍后再试"),
    FALLE_OVER(20005, "熔断了"),
    USER_NO(20008, "账户不存在"),
    PASSWORD_ERROR(20009,"密码错误"),
    CODE_SUCCESS(10001, "验证码发送成功"),

    CODE_ERROR(20010, "验证码输入有误");


    private Integer code;
    private String message;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
